package com.dongjiantong.farmrecords.mapper;

import com.dongjiantong.farmrecords.model.FarmRecordsInspection;
import com.dongjiantong.mybatis.MyMapper;

import java.util.List;
import java.util.Map;

public interface FarmRecordsInspectionMapper extends MyMapper<FarmRecordsInspection> {
    /**
     * 根据条件查询记录
     * @param map
     * @return
     */
    List<FarmRecordsInspection> selectByMap(Map map);

    /**
     * 新增一条记录
     * @param
     * @return
     */
    int createOne(FarmRecordsInspection farmRecordsInspection);

    String findMaxNumber(String prefix);

    /**
     * 养殖端根据状态查询列表
     * @param map
     * @return
     */
    List<FarmRecordsInspection> selectListByStatus(Map<String, Object> map);
}